.class public Lcom/bitauto/autoeasy/picture/PictureActivity;
.super Lcom/bitauto/autoeasy/BaseActivity;
.source "PictureActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/bitauto/autoeasy/BaseActivity;",
        "Landroid/view/View$OnClickListener;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# static fields
.field private static final BUTTONSIZE:I = 0x4

.field public static allList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/bitauto/autoeasy/picture/PictureParser$ImageList;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field private final PIC01:I

.field private final PIC02:I

.field private final PIC03:I

.field private final PIC06:I

.field private final SIZE04:I

.field private final STR:Ljava/lang/String;

.field private button:[Landroid/widget/Button;

.field private carid:I

.field private gridView:Landroid/widget/GridView;

.field public picAdapter:Lcom/bitauto/autoeasy/picture/PictureAdapter;

.field private title:Ljava/lang/String;

.field private total:I


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x4

    .line 20
    invoke-direct {p0}, Lcom/bitauto/autoeasy/BaseActivity;-><init>()V

    .line 23
    iput v1, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->SIZE04:I

    .line 26
    const/4 v0, 0x6

    iput v0, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->PIC01:I

    .line 28
    const/4 v0, 0x7

    iput v0, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->PIC02:I

    .line 30
    const/16 v0, 0x8

    iput v0, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->PIC03:I

    .line 32
    const/16 v0, 0xc

    iput v0, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->PIC06:I

    .line 36
    new-array v0, v1, [Landroid/widget/Button;

    iput-object v0, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->button:[Landroid/widget/Button;

    .line 47
    const-string v0, "&group="

    iput-object v0, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->STR:Ljava/lang/String;

    .line 20
    return-void
.end method


# virtual methods
.method public changeButtonBg(I)V
    .locals 6
    .parameter "num"

    .prologue
    const-string v5, "["

    .line 166
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    const/4 v2, 0x4

    if-lt v0, v2, :cond_0

    .line 178
    return-void

    .line 167
    :cond_0
    const/4 v1, 0x0

    .line 168
    .local v1, str:Ljava/lang/String;
    if-ne v0, p1, :cond_2

    .line 169
    iget-object v2, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->button:[Landroid/widget/Button;

    aget-object v2, v2, v0

    invoke-virtual {v2}, Landroid/widget/Button;->getText()Ljava/lang/CharSequence;

    move-result-object v2

    invoke-interface {v2}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v1

    .line 170
    const-string v2, "["

    invoke-virtual {v1, v5}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_1

    .line 171
    iget-object v2, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->button:[Landroid/widget/Button;

    aget-object v2, v2, v0

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "["

    invoke-direct {v3, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "]"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 166
    :cond_1
    :goto_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 173
    :cond_2
    iget-object v2, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->button:[Landroid/widget/Button;

    aget-object v2, v2, v0

    invoke-virtual {v2}, Landroid/widget/Button;->getText()Ljava/lang/CharSequence;

    move-result-object v2

    invoke-interface {v2}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v1

    .line 174
    const-string v2, "["

    invoke-virtual {v1, v5}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 175
    iget-object v2, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->button:[Landroid/widget/Button;

    aget-object v2, v2, v0

    const/4 v3, 0x1

    const/4 v4, 0x3

    invoke-virtual {v1, v3, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1
.end method

.method public downLoad(I)V
    .locals 2
    .parameter "group"

    .prologue
    .line 96
    new-instance v0, Lcom/bitauto/autoeasy/picture/PictureParser;

    iget v1, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->carid:I

    invoke-virtual {p0, v1, p1}, Lcom/bitauto/autoeasy/picture/PictureActivity;->getUrl(II)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/bitauto/autoeasy/picture/PictureParser;-><init>(Ljava/lang/String;)V

    .line 97
    .local v0, picParser:Lcom/bitauto/autoeasy/picture/PictureParser;
    invoke-virtual {v0}, Lcom/bitauto/autoeasy/picture/PictureParser;->Paser2Object()V

    .line 98
    sget-object v1, Lcom/bitauto/autoeasy/picture/PictureActivity;->allList:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    .line 99
    invoke-virtual {v0}, Lcom/bitauto/autoeasy/picture/PictureParser;->getImageLists()Ljava/util/ArrayList;

    move-result-object v1

    sput-object v1, Lcom/bitauto/autoeasy/picture/PictureActivity;->allList:Ljava/util/ArrayList;

    .line 100
    sget-object v1, Lcom/bitauto/autoeasy/picture/PictureActivity;->allList:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    iput v1, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->total:I

    .line 101
    return-void
.end method

.method public getUrl(II)Ljava/lang/String;
    .locals 3
    .parameter "carid"
    .parameter "group"

    .prologue
    .line 122
    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    .line 123
    .local v0, sb:Ljava/lang/StringBuffer;
    const-string v1, "http://m.bitauto.com/iphoneapi/v2/photolistofcar/?carid="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string v2, "&group="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string v2, "&pagesize=100"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 124
    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    return-object v1
.end method

.method public initView()V
    .locals 6

    .prologue
    const/4 v5, 0x3

    const/4 v4, 0x2

    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 75
    const v0, 0x7f03002b

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/picture/PictureActivity;->setContentView(I)V

    .line 77
    const v0, 0x7f0b01c4

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/picture/PictureActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/GridView;

    iput-object v0, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->gridView:Landroid/widget/GridView;

    .line 78
    iget-object v0, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->gridView:Landroid/widget/GridView;

    invoke-virtual {v0, p0}, Landroid/widget/GridView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 80
    iget-object v1, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->button:[Landroid/widget/Button;

    const v0, 0x7f0b0053

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/picture/PictureActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    aput-object v0, v1, v2

    .line 81
    iget-object v1, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->button:[Landroid/widget/Button;

    const v0, 0x7f0b0054

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/picture/PictureActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    aput-object v0, v1, v3

    .line 82
    iget-object v1, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->button:[Landroid/widget/Button;

    const v0, 0x7f0b0055

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/picture/PictureActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    aput-object v0, v1, v4

    .line 83
    iget-object v1, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->button:[Landroid/widget/Button;

    const v0, 0x7f0b0056

    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/picture/PictureActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    aput-object v0, v1, v5

    .line 84
    iget-object v0, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->button:[Landroid/widget/Button;

    aget-object v0, v0, v2

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 85
    iget-object v0, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->button:[Landroid/widget/Button;

    aget-object v0, v0, v3

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 86
    iget-object v0, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->button:[Landroid/widget/Button;

    aget-object v0, v0, v4

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 87
    iget-object v0, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->button:[Landroid/widget/Button;

    aget-object v0, v0, v5

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 89
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 5
    .parameter "v"

    .prologue
    const/4 v2, 0x1

    const/4 v3, 0x0

    const-string v4, ""

    .line 129
    new-instance v0, Lcom/bitauto/autoeasy/picture/Task/ChangeGroupTask;

    invoke-direct {v0, p0}, Lcom/bitauto/autoeasy/picture/Task/ChangeGroupTask;-><init>(Lcom/bitauto/autoeasy/picture/PictureActivity;)V

    .line 130
    .local v0, changeGroupTask:Lcom/bitauto/autoeasy/picture/Task/ChangeGroupTask;
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    .line 152
    :goto_0
    return-void

    .line 132
    :pswitch_0
    invoke-virtual {p0, v3}, Lcom/bitauto/autoeasy/picture/PictureActivity;->changeButtonBg(I)V

    .line 133
    const/4 v1, 0x6

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/picture/Task/ChangeGroupTask;->setSign(I)V

    .line 134
    new-array v1, v2, [Ljava/lang/String;

    const-string v2, ""

    aput-object v4, v1, v3

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/picture/Task/ChangeGroupTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    goto :goto_0

    .line 137
    :pswitch_1
    invoke-virtual {p0, v2}, Lcom/bitauto/autoeasy/picture/PictureActivity;->changeButtonBg(I)V

    .line 138
    const/4 v1, 0x7

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/picture/Task/ChangeGroupTask;->setSign(I)V

    .line 139
    new-array v1, v2, [Ljava/lang/String;

    const-string v2, ""

    aput-object v4, v1, v3

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/picture/Task/ChangeGroupTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    goto :goto_0

    .line 142
    :pswitch_2
    const/4 v1, 0x2

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/picture/PictureActivity;->changeButtonBg(I)V

    .line 143
    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/picture/Task/ChangeGroupTask;->setSign(I)V

    .line 144
    new-array v1, v2, [Ljava/lang/String;

    const-string v2, ""

    aput-object v4, v1, v3

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/picture/Task/ChangeGroupTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    goto :goto_0

    .line 147
    :pswitch_3
    const/4 v1, 0x3

    invoke-virtual {p0, v1}, Lcom/bitauto/autoeasy/picture/PictureActivity;->changeButtonBg(I)V

    .line 148
    const/16 v1, 0xc

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/picture/Task/ChangeGroupTask;->setSign(I)V

    .line 149
    new-array v1, v2, [Ljava/lang/String;

    const-string v2, ""

    aput-object v4, v1, v3

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/picture/Task/ChangeGroupTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    goto :goto_0

    .line 130
    nop

    :pswitch_data_0
    .packed-switch 0x7f0b0053
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5
    .parameter "savedInstanceState"

    .prologue
    const/4 v4, 0x0

    .line 52
    invoke-super {p0, p1}, Lcom/bitauto/autoeasy/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 54
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/picture/PictureActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "carid"

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v2

    iput v2, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->carid:I

    .line 55
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/picture/PictureActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    const-string v3, "title"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->title:Ljava/lang/String;

    .line 57
    new-instance v1, Lcom/bitauto/autoeasy/picture/PictureParser;

    iget v2, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->carid:I

    const/4 v3, 0x6

    invoke-virtual {p0, v2, v3}, Lcom/bitauto/autoeasy/picture/PictureActivity;->getUrl(II)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/bitauto/autoeasy/picture/PictureParser;-><init>(Ljava/lang/String;)V

    .line 58
    .local v1, picParser:Lcom/bitauto/autoeasy/picture/PictureParser;
    invoke-virtual {v1}, Lcom/bitauto/autoeasy/picture/PictureParser;->Paser2Object()V

    .line 59
    invoke-virtual {v1}, Lcom/bitauto/autoeasy/picture/PictureParser;->getImageLists()Ljava/util/ArrayList;

    move-result-object v2

    sput-object v2, Lcom/bitauto/autoeasy/picture/PictureActivity;->allList:Ljava/util/ArrayList;

    .line 60
    sget-object v2, Lcom/bitauto/autoeasy/picture/PictureActivity;->allList:Ljava/util/ArrayList;

    if-eqz v2, :cond_0

    .line 61
    sget-object v2, Lcom/bitauto/autoeasy/picture/PictureActivity;->allList:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    iput v2, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->total:I

    .line 62
    invoke-virtual {p0}, Lcom/bitauto/autoeasy/picture/PictureActivity;->initView()V

    .line 63
    new-instance v0, Lcom/bitauto/autoeasy/picture/PictureAdapter;

    invoke-direct {v0, p0}, Lcom/bitauto/autoeasy/picture/PictureAdapter;-><init>(Landroid/app/Activity;)V

    .line 64
    .local v0, adapter:Lcom/bitauto/autoeasy/picture/PictureAdapter;
    sget-object v2, Lcom/bitauto/autoeasy/picture/PictureActivity;->allList:Ljava/util/ArrayList;

    invoke-virtual {v0, v2}, Lcom/bitauto/autoeasy/picture/PictureAdapter;->setList(Ljava/util/ArrayList;)V

    .line 65
    const/4 v2, 0x4

    invoke-virtual {v0, v2}, Lcom/bitauto/autoeasy/picture/PictureAdapter;->setSize(I)V

    .line 66
    iget-object v2, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->gridView:Landroid/widget/GridView;

    invoke-virtual {v2, v0}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 67
    invoke-virtual {p0, v4}, Lcom/bitauto/autoeasy/picture/PictureActivity;->changeButtonBg(I)V

    .line 69
    .end local v0           #adapter:Lcom/bitauto/autoeasy/picture/PictureAdapter;
    :cond_0
    return-void
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 3
    .parameter
    .parameter "view"
    .parameter "position"
    .parameter "id"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 157
    .local p1, parent:Landroid/widget/AdapterView;,"Landroid/widget/AdapterView<*>;"
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/bitauto/autoeasy/picture/PictureViewActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 158
    .local v0, intent:Landroid/content/Intent;
    const-string v1, "position"

    invoke-virtual {v0, v1, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 159
    const-string v1, "title"

    iget-object v2, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->title:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 160
    const-string v1, "total"

    iget v2, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->total:I

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 161
    invoke-virtual {p0, v0}, Lcom/bitauto/autoeasy/picture/PictureActivity;->startActivity(Landroid/content/Intent;)V

    .line 162
    return-void
.end method

.method public refreshView(I)V
    .locals 3
    .parameter "group"

    .prologue
    .line 108
    sget-object v1, Lcom/bitauto/autoeasy/picture/PictureActivity;->allList:Ljava/util/ArrayList;

    if-eqz v1, :cond_0

    sget-object v1, Lcom/bitauto/autoeasy/picture/PictureActivity;->allList:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_0

    .line 109
    sget-object v1, Lcom/bitauto/autoeasy/picture/PictureActivity;->allList:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    iput v1, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->total:I

    .line 110
    new-instance v0, Lcom/bitauto/autoeasy/picture/PictureAdapter;

    invoke-direct {v0, p0}, Lcom/bitauto/autoeasy/picture/PictureAdapter;-><init>(Landroid/app/Activity;)V

    .line 111
    .local v0, adapter:Lcom/bitauto/autoeasy/picture/PictureAdapter;
    sget-object v1, Lcom/bitauto/autoeasy/picture/PictureActivity;->allList:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/picture/PictureAdapter;->setList(Ljava/util/ArrayList;)V

    .line 112
    iget-object v1, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->gridView:Landroid/widget/GridView;

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/picture/PictureAdapter;->setGridView(Landroid/widget/GridView;)V

    .line 113
    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Lcom/bitauto/autoeasy/picture/PictureAdapter;->setSize(I)V

    .line 114
    iget-object v1, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->gridView:Landroid/widget/GridView;

    invoke-virtual {v1, v0}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 118
    .end local v0           #adapter:Lcom/bitauto/autoeasy/picture/PictureAdapter;
    :goto_0
    return-void

    .line 116
    :cond_0
    iget-object v1, p0, Lcom/bitauto/autoeasy/picture/PictureActivity;->gridView:Landroid/widget/GridView;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    goto :goto_0
.end method
